package JAVASE515;

import java.util.Random;

public class JAVAarrtest {
    public static void main(String[] argc){
        int[] arr={1,2,3,5,6};
        Random r=new Random();
        for (int i = 0; i < arr.length; i++) {
            int num= r.nextInt(5);
            int temp=arr[i];
            arr[i]=arr[num];
            arr[num]=temp;
        }
        for(int i=0;i<arr.length;i++)System.out.println(arr[i]);
    }
}
